<?php
/**
 * blog路由
 */

Route::group(['namespace' => 'front\contab'/*,'middleware'=>'login'*/], function () {
    Route::match(['get','post'],'/',['uses' => 'BlogController@index', 'as' => 'blog']);
    Route::match(['get','post'],'/about',['uses' => 'BlogController@about', 'as' => 'about']);
    Route::match(['get','post'],'/message',['uses' => 'BlogController@message', 'as' => 'message']);
    Route::match(['get','post'],'/study',['uses' => 'BlogController@study', 'as' => 'study']);
    Route::match(['get','post'],'/login',['uses' => 'AuthController@login', 'as' => 'login']);
    Route::match(['get','post'],'/quick_login',['uses' => 'AuthController@quick_login', 'as' => 'quick_login']);
    Route::match(['get','post'],'/register',['uses' => 'AuthController@register', 'as' => 'register']);
    Route::match(['get','post'],'/quick_register',['uses' => 'AuthController@quick_register', 'as' => 'quick_register']);
    Route::match(['get','post'],'/sendemail',['uses' => 'SendEmailController@SendEmail', 'as' => 'sendemail']);
    Route::match(['get','post'],'/active',['uses' => 'SendEmailController@verifyEmail', 'as' => 'active']);
    Route::match(['get','post'],'/info',['uses' => 'AuthController@info', 'as' => 'info']);
});

Route::group(['namespace' => 'front'/*,'middleware'=>'login'*/], function () {
    Route::match(['get','post'],'/verify',['uses' => 'VerifyController@verify', 'as' => 'verify']);

});